package com.cndatacom.ccsinfoMgr.service.impl;

import com.cndatacom.ccsinfoMgr.dao.IGatheringInfoDao;
import com.cndatacom.ccsinfoMgr.model.GatheringInfo;
import com.cndatacom.ccsinfoMgr.service.IGatheringInfoService;
import com.cndatacom.eweb.common.PaginationModel;

public class GatheringInfoService implements IGatheringInfoService {
	
	private IGatheringInfoDao gatheringInfoDao;

	public boolean delGatheringInfoById(int id) {
		return gatheringInfoDao.delGatheringInfoById(id);
	}

	public PaginationModel getAllGatheringInfo(int offset, int pageSize) {
		return gatheringInfoDao.getAllGatheringInfo(offset, pageSize);
	}

	public PaginationModel getGatheringInfoByHQL(String hql, int offset, int pageSize) {
		return gatheringInfoDao.getGatheringInfoByHQL(hql, offset, pageSize);
	}

	public GatheringInfo getGatheringInfoById(int id) {
		return gatheringInfoDao.getGatheringInfoById(id);
	}

	public GatheringInfo saveOrUpdateGatheringInfo(GatheringInfo gInfo) {
		return gatheringInfoDao.saveOrUpdateGatheringInfo(gInfo);
	}
	
	public IGatheringInfoDao getgatheringInfoDao() {
		return gatheringInfoDao;
	}

	public void setgatheringInfoDao(IGatheringInfoDao gatheringInfoDao) {
		this.gatheringInfoDao = gatheringInfoDao;
	}


}

